import request from '../../../utils/request'

//获取用户列表
export const getUsers = function getUsers(data:any) {
    return request({
      url: '/api/User/GetUsers',
      method: 'get',
      params:data
    })
  }

//获取用户权限
export const getMyRights = function getMyRights(data:any) {
  return request({
    url: '/api/Right/GetMyRights',
    method: 'get',
    params:data
  })
}

//获取权限列表
export const getRights = function getRights(data:any) {
  return request({
    url: '/api/Right/GetRights',
    method: 'get',
    params:data
  })
}
//用户授权
export const giveUserRights = function giveUserRights(data:any) {
  return request({
    url: '/api/Right/GiveUserRights',
    method: 'post',
    data:data
  })
}